﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace FlightSearchServer
{
    [CollectionDataContract( Name="serversCollection", ItemName="replicationServers")]
    class ServersCollection : List<SearchServer>
    {
        public ServersCollection() { }

        public ServersCollection(List<SearchServer> replications) : base(replications) { }

        public ServersCollection(params SearchServer[] replications)
        {
            foreach (SearchServer serverName in replications)
                Add( serverName);
        }
    }
}
